<?php
// +----------------------------------------------------------------------
// | sfadmin - Suifeng Administration
// +----------------------------------------------------------------------
// | Copyright (c) 2017-2020 http://suifeng.tech All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: suifeng <1787585212@qq.com>
// +----------------------------------------------------------------------

namespace suifeng\behavior;

class InitModule
{
    public function run(&$params)
    {
        // --------------------------------------------------------------------
        // 针对不同的应用入口，设置不同的配置值。
        // --------------------------------------------------------------------

        if (APP_NAME == 'admin' && request()->module() != 'admin') {
            //config('url_controller_layer', 'admin');
            //config('template.view_path', APP_PATH . request()->module() . '/view/admin/');
        }
    }
}

